import request from '@/utils/request'
import { LabelSearchType } from '@/types/ccc/lable'
import {saveArticleType} from '@/types/ccc/article'
export default {
    // 获取信息
    getAllArticleApi: (data: LabelSearchType) => request.post('/api/getAllArticle', data),
    // 获取文章分类信息
    getAllArticleTypes: () => request.post('/api/getArticleTypes'),
    // 保存文章内容
    saveArticleApi: (data: saveArticleType) => request.post('/api/saveArticle', data),
    // 修改文章内容
    updateArticleByIdApi: (data: saveArticleType) => request.post('/api/updateArticleById', data),
    // 根据id删除文章内容
    delArticleByIdApi:(id:number)=>request.post('/api/delArticleById',{id})
} 